﻿
namespace NamedBinaryTag.Converters
{
	class Token
	{
		internal enum TokenType
		{
			None,
			Text,	/* [^].[0-9][^].[]*|"([^\"]|\.)" */
			Dot, /* . */
			OpenBracket, /* [ */
			CloseBracket, /* ] */
			Integer, /* [0-9]+ */
			EndOfString
		};

		public TokenType Type { get; set; }

		public int Offset { get; set; }

		public string Value { get; set; }

		public override string ToString()
		{
			return "{" + string.Format(" Offset={0}; Type={1}; Value={2} ", Offset, Type, Value) + "}";
		}
	}
}
